// 隐患排查
import type { AppRouteModule } from '/@/router/types';

import { getParentLayout, LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const charts: AppRouteModule = {
  path: '/danger',
  name: 'danger',
  component: LAYOUT,
  redirect: '/danger/fire',
  meta: {
    orderNo: 400,
    icon: 'ion:bar-chart-outline',
    title: t('routes.demo.dangerInvestigate.root'),
    roles: ['Admin', 'City', 'Area', 'Street', 'Community', 'Investigator'],
    // userGroups: ['Admin', 'FireControl', 'Housing', 'Police'],
    // 去掉 住建 的 隐患排查
    userGroups: ['Admin', 'Police'],
  },
  children: [
    // 隐患统计(分项)
    // {
    //   path: 'housesDangerLiving777after',
    //   name: 'housesDangerLiving777after',

    //   meta: {
    //     orderNo: 501,
    //     title: t('routes.demo.dangerInvestigate.housesDangerLiving777after'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/housesDangerLiving/index777after315.vue'),
    // },
    // {
    //   path: 'fire',
    //   name: 'fire',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.fire'),
    //     hideChildrenInMenu: true,
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/danger/fire/FireTable.vue'),
    //   children: [
    //     {
    //       path: 'detail/:id',
    //       name: 'fireTabDetail',
    //       component: () => import('/@/views/danger/fire/detail.vue'),
    //       meta: {
    //         currentActiveMenu: '/danger/fire',
    //         title: t('routes.demo.dangerInvestigate.fireDetail'),
    //         hideMenu: true,
    //         dynamicLevel: 3,
    //         realPath: '/danger/fire/detail',
    //         roles: ['Admin', 'City', 'Area', 'Street', 'Community', 'Investigator'],
    //         userGroups: ['Admin', 'FireControl'],
    //       },
    //     },
    //   ],
    // },
    {
      path: 'comprehensive',
      name: 'comprehensive',
      meta: {
        title: t('routes.demo.dangerInvestigate.comprehensive'),
        userGroups: ['Admin', 'Police'],
        roles: ['Admin', 'City', 'Area', 'Street', 'Community', 'Investigator'],
        hideChildrenInMenu: true,
      },
      component: () => import('/@/views/danger/comprehensive/DataTable.vue'),
      children: [
        {
          path: 'detail/:id',
          name: 'comprehensiveTabDetail',
          component: () => import('/@/views/danger/comprehensive/detail.vue'),
          meta: {
            currentActiveMenu: '/danger/comprehensive',
            title: t('routes.demo.dangerInvestigate.comprehensiveDetail'),
            hideMenu: true,
            dynamicLevel: 3,
            realPath: '/danger/comprehensive/detail',
            roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
            userGroups: ['Admin', 'Police'],
          },
        },
      ],
    },
    // 公安 --> 整治排查进度统计
    {
      path: 'statisticsCount',
      name: 'statisticsCount',
      meta: {
        title: t('routes.demo.dangerInvestigate.statisticsCount'),
        userGroups: ['Admin', 'Police'],
        // 'Investigator' ,'Street'  调查员 和 街道暂时不加
        roles: ['Admin', 'City', 'Area', 'Community', 'Investigator', 'Street'],
        hideChildrenInMenu: true,
      },
      component: () => import('/@/views/danger/statisticsCount/index.vue'),
    },
    // 房屋补充信息排查
    {
      path: 'supplement',
      name: 'supplement',
      meta: {
        title: t('routes.demo.dangerInvestigate.supplement'),
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['Admin', 'Housing'],
      },
      component: () => import('/@/views/danger/supplement/FetchTable.vue'),
    },
    // // 四清三停四建设管理
    // {
    //   path: 'village',
    //   name: 'villageDanger',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.threePureManage'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/threePure/manager/index.vue'),
    // },
    // // 三请四建设统计
    // {
    //   path: 'count',
    //   name: 'threePureCount',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.threePureCount'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/threePure/count/index.vue'),
    // },
    // 村庄消防安全信息排查（777 - 315前后）
    // {
    //   path: 'village777',
    //   name: 'villageDanger777',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.village777'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/houseDangerInfo777/index.vue'),
    // },
    // 村庄消防安全信息排查（107 - 315前后）
    // {
    //   path: 'village107',
    //   name: 'villageDanger107',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.village107'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/houseDangerInfo107/index.vue'),
    // },
    // 先注释掉 消防统计
    // {
    //   path: 'count',
    //   name: 'countDanger',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.count'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/Count.vue'),
    // },
    // 统计（新）自建出租房屋隐患录入系统汇总表（居住）
    // {
    //   path: 'housesDangerLiving',
    //   name: 'housesDangerLiving',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.housesDangerLiving'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/housesDangerLiving/index.vue'),
    // },
    // 统计（新）自建出租房屋隐患录入系统汇总表（商业）
    // {
    //   path: 'housesDangerBusiness',
    //   name: 'housesDangerBusiness',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.housesDangerBusiness'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/housesDangerBusiness/index.vue'),
    // },
    // {
    //   path: 'housesDangerLiving777',
    //   name: 'housesDangerLiving777',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.housesDangerLiving777'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/housesDangerLiving/index777.vue'),
    // },
    // {
    //   path: 'housesDangerLiving777after',
    //   name: 'housesDangerLiving777after',

    //   meta: {
    //     orderNo: 501,
    //     title: t('routes.demo.dangerInvestigate.housesDangerLiving777after'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/housesDangerLiving/index777after315.vue'),
    // },
    // {
    //   path: 'housesDangerBusiness777',
    //   name: 'housesDangerBusiness777',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.housesDangerBusiness777'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/housesDangerBusiness/index777.vue'),
    // },
    // {
    //   path: 'housesDangerBusiness777after',
    //   name: 'housesDangerBusiness777after',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.housesDangerBusiness777after'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/housesDangerBusiness/index777after315.vue'),
    // },

    //107
    // {
    //   path: 'housesDangerLiving107',
    //   name: 'housesDangerLiving107',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.housesDangerLiving107'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/housesDangerLiving/index107.vue'),
    // },
    // {
    //   path: 'housesDangerLiving107after',
    //   name: 'housesDangerLiving107after',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.housesDangerLiving107after'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/housesDangerLiving/index107after315.vue'),
    // },
    // {
    //   path: 'housesDangerBusiness107',
    //   name: 'housesDangerBusiness107',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.housesDangerBusiness107'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/housesDangerBusiness/index107.vue'),
    // },
    // {
    //   path: 'housesDangerBusiness107after',
    //   name: 'housesDangerBusinessafter',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.housesDangerBusiness107after'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/housesDangerBusiness/index107after315.vue'),
    // },
    // {
    //   path: 'housesDangerBusiness',
    //   name: 'housesDangerBusiness',
    //   meta: {
    //     title: t('routes.demo.dangerInvestigate.housesDangerBusiness'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/housesDangerBusiness/index.vue'),
    // },
  ],
};

export default charts;
